FROM sharelatex/sharelatex:latest

LABEL maintainer "xlchen <chenxinliang@bit.edu.cn>"

RUN tlmgr option repository https://mirrors.ustc.edu.cn/CTAN/systems/texlive/tlnet && \
    curl https://mirrors.ustc.edu.cn/CTAN/systems/texlive/tlnet/update-tlmgr-latest.sh 
#    && \
#    tlmgr update --self --all && \
#    tlmgr install scheme-full

RUN apt update && apt-get install xfonts-wqy -y
# && \
#     wget -c https://ftp.dlcloud.info/linuxsoftware/winfonts.zip && \
#     unzip winfonts.zip -d winfonts && \
#     mv winfonts /usr/share/fonts/ && \
#     cd /usr/share/fonts/winfonts && mkfontscale && mkfontdir && \
#     fc-cache -fv && fc-list :lang=zh-cn
